//
//  UILabel+Extension.swift
//  SinaMicroBlog
//
//  Created by xinjuwen on 15/10/26.
//  Copyright © 2015年 xinjuwen. All rights reserved.
//

import Foundation
import UIKit

extension UILabel {
    convenience init(textColor: UIColor, fontSize: CGFloat) {
        self.init()
        
        //设置label字体颜色
        self.textColor = textColor
        
        //设置居中显示
        self.textAlignment = NSTextAlignment.Center
        
        // 设置字体大小
        self.font = UIFont.systemFontOfSize(fontSize)
        
        //文字可折行
        self.numberOfLines = 0
    }
}